package com.mg.admin.dao.admin;

import com.mg.admin.annotation.MyBatis;
import com.mg.admin.bean.admin.OrganizationVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

@MyBatis
public interface OrganizationMapper {

    List<OrganizationVO> findChildByParentId(@Param("orgId") Long orgId);

    void insertOne(OrganizationVO organizationVO);

    void updateOne(OrganizationVO organizationVO);

    void delete(Long id);

    OrganizationVO findById(Long id);

    List<OrganizationVO> findByParentId(@Param("orgId") Long orgId, RowBounds rb);

    Integer getCountByParentId(@Param("orgId") Long orgId);
}
